package cn.cqie.frame.bo.update;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 谢一弘
 * @date 2021/9/6  11:14
 */
@Data
@ApiModel("修改菜单")
public class UpdateMenuBo {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @NotNull(message = "菜单名称不能为空")
    @ApiModelProperty(value = "菜单名称")
    private String name;
    @NotNull(message = "程序路径不能为空")
    @ApiModelProperty(value = "程序路径")
    private String path;
    @NotNull(message = "组件不能为空")
    @ApiModelProperty(value = "组件")
    private String component;
    @NotNull(message = "图标路径不能为空")
    @ApiModelProperty(value = "图标路径")
    private String icon;
    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序码")
    private Integer sortCode;
    @ApiModelProperty(value = "是否隐藏  0否1是")
    private Integer isHidden;
    @ApiModelProperty(value = "上级菜单Id")
    private Integer parentId;
}
